{% extends "blog/base_blog.html" %}

  
{% block title %} Blog de {{ otros.blog.autor.username }} | {{ otros.blog.titulo }}  {% endblock %}
{% block blog_autor %} {{ otros.blog.autor.username }} {% endblock %} 
{% block blog_titulo %} {{ otros.blog.titulo }} {% endblock %}
{% block blog_descripcion %}  {{ otros.blog.descripcion|slice:"0:80"|striptags  }}... {% endblock %}


{% block content %}
	<h2>{{ post.titulo }}</h2>
	<strong>{{ post.descripcion }}</strong>
	{{ post.cuerpo }}
	
	<p class="comments align-right">
		Posteado el {{ post.fecha|date:"j F, Y" }}
	    | {{ post.lecturas}} lecturas
		<br/>
		<strong>Tags:</strong>
		{% for tag in post.tags.all %} 
	    	<a href="/blog/tag/{{tag.slug}}" title="{{tag.slug}}">{{tag.slug}}</a> 
	    {% endfor %}
	</p>

	<a name="comments"></a>
    {% load comments %}
    {% get_free_comment_list for blog.post post.id as comment_list %}
        
    <h2>Comentarios</h2>
    
    {% for comment in comment_list %}
    	<blockquote> 
    		<div id="c{{ comment.id }}">
				<h3>{{ comment.person_name|escape }} <span class="small quiet">{{ comment.submit_date|date:"j F, Y" }} @ {{ comment.submit_date|date:"P" }}</span></h3>
	            {{ comment.comment|escape|urlizetrunc:"40"|linebreaks }}
			</div>
		</blockquote>
    {% endfor %}
    
    <h2>Envia un comentario</h2>
    {% free_comment_form for blog.post post.id %}
{% endblock %}